﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace BooksManagermentSystem
{
    public partial class AdminInfo_form : Form
    {
        public AdminInfo_form()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            AddAdmin_form aa = new AddAdmin_form();
            aa.StartPosition= FormStartPosition.CenterScreen;
            aa.ShowDialog();
        }

        private void AdminInfo_form_Load(object sender, EventArgs e)
        {
            dataGridView1.DataSource = DBhelper.GetDataTable("select account 账号,pwd 密码,name 姓名 from AdminInfo");
        }

        private void button2_Click(object sender, EventArgs e)
        {
            DeleteAdmin_form da = new DeleteAdmin_form();
            da.StartPosition= FormStartPosition.CenterScreen;
            da.ShowDialog();
        }
    }
}
